#!/bin/bash
#next build
VERSION=0.4.1
NAME=yfhub/chatroom_web
REGISTRY=harbor.sxidc.com
IMAGE_NAME=${REGISTRY}/${NAME}:${VERSION}
CONTAINER_NAME=chat

docker login ${REGISTRY}
docker rm -vf ${CONTAINER_NAME}
docker rmi ${IMAGE_NAME}

docker build -t ${IMAGE_NAME} .

docker push ${IMAGE_NAME}
